package com.wz.project.sap.POST_TMDATA_SERIAL.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.wz.project.sap.POST_TMDATA_SERIAL.mapper.YppRfcPostTmdataSerialMapper;
import com.wz.project.sap.POST_TMDATA_SERIAL.domain.YppRfcPostTmdataSerial;
import com.wz.project.sap.POST_TMDATA_SERIAL.service.IYppRfcPostTmdataSerialService;
import com.wz.common.utils.text.Convert;

/**
 * 生产订单入库SERIALService业务层处理
 * 
 * @author wz
 * @date 2022-09-20
 */
@Service
public class YppRfcPostTmdataSerialServiceImpl implements IYppRfcPostTmdataSerialService 
{
    @Autowired
    private YppRfcPostTmdataSerialMapper yppRfcPostTmdataSerialMapper;

    /**
     * 查询生产订单入库SERIAL
     * 
     * @param ZDOCNO 生产订单入库SERIALID
     * @return 生产订单入库SERIAL
     */
    @Override
    public YppRfcPostTmdataSerial selectYppRfcPostTmdataSerialById(String ZDOCNO)
    {
        return yppRfcPostTmdataSerialMapper.selectYppRfcPostTmdataSerialById(ZDOCNO);
    }

    /**
     * 查询生产订单入库SERIAL列表
     * 
     * @param yppRfcPostTmdataSerial 生产订单入库SERIAL
     * @return 生产订单入库SERIAL
     */
    @Override
    public List<YppRfcPostTmdataSerial> selectYppRfcPostTmdataSerialList(YppRfcPostTmdataSerial yppRfcPostTmdataSerial)
    {
        return yppRfcPostTmdataSerialMapper.selectYppRfcPostTmdataSerialList(yppRfcPostTmdataSerial);
    }

    /**
     * 新增生产订单入库SERIAL
     * 
     * @param yppRfcPostTmdataSerial 生产订单入库SERIAL
     * @return 结果
     */
    @Override
    public int insertYppRfcPostTmdataSerial(YppRfcPostTmdataSerial yppRfcPostTmdataSerial)
    {
        return yppRfcPostTmdataSerialMapper.insertYppRfcPostTmdataSerial(yppRfcPostTmdataSerial);
    }

    /**
     * 修改生产订单入库SERIAL
     * 
     * @param yppRfcPostTmdataSerial 生产订单入库SERIAL
     * @return 结果
     */
    @Override
    public int updateYppRfcPostTmdataSerial(YppRfcPostTmdataSerial yppRfcPostTmdataSerial)
    {
        return yppRfcPostTmdataSerialMapper.updateYppRfcPostTmdataSerial(yppRfcPostTmdataSerial);
    }

    /**
     * 删除生产订单入库SERIAL对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteYppRfcPostTmdataSerialByIds(String ids)
    {
        return yppRfcPostTmdataSerialMapper.deleteYppRfcPostTmdataSerialByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除生产订单入库SERIAL信息
     * 
     * @param ZDOCNO 生产订单入库SERIALID
     * @return 结果
     */
    @Override
    public int deleteYppRfcPostTmdataSerialById(String ZDOCNO)
    {
        return yppRfcPostTmdataSerialMapper.deleteYppRfcPostTmdataSerialById(ZDOCNO);
    }
}
